-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for various export related issues #377
Conversation
Jest Coverage
|
@ianroberts @davidwilby can either one of you have a look at this before we merge it in? |
72f848d
to
901bbf7
Compare
901bbf7
to
e289227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All LGTM now - I've rebased on latest dev, combining your changes with mine from #399, and I'm happy to merge this now.
@@ -1047,7 +1052,7 @@ def get_doc_annotation_dict(self, json_format="raw", anonymize=True): | |||
("aborted", Annotation.ABORTED), | |||
]: | |||
teamware_status[key] = [ | |||
annotation.user.id if anonymize else annotation.user.username | |||
f"{settings.ANONYMIZATION_PREFIX}{annotation.user.id}" if anonymize else annotation.user.username |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the teamware_status
to use the same anonymized names as everything else.
name
field and keys insideannotation_sets
settings.ANONYMIZATION_PREFIX
), defaults toannotator
features
field if exporting as GATE formattest_export_gate
to check for thisfeatures
field for each annotation now directly has content of the annotation instead of being nested in alabel
fieldcheck_raw_gate_annotation_formatting
to check for thisannotation_sets
field. New annotations should be appended to this field rather than overwritten. #348annotation_sets
field while for CSV it'sannotations
fieldcheck_raw_gate_annotation_formatting
andtest_export_csv
to check for this behaviour